#ifndef _P2PDATASOURCE_H_
#define _P2PDATASOURCE_H_

#ifdef __Win32__
#pragma warning(disable:4786)
#endif

#include "DataSource.h"

class CSliceCollector;
class CP2PDataSource : public CDataSource
{

public:
	CP2PDataSource(CBusinessDNA &inBusinessDNA);
	~CP2PDataSource();
public:
	virtual Bool		Initialize();
	virtual Bool		GetSDP(std::string *outSDP);

	virtual Bool		Seek(UInt64 vStart);
	virtual Bool		Pause();
	virtual Bool		Stop();
		
	void				EnAutoStepForwardPT();

	UInt16				GetRstpClientPort();
		
protected:

protected:
	CSliceCollector*	m_pSliceCollector;
//	std::string			m_Sdp;

protected:
	friend class CDispNetpack;
};

#endif	//_P2PDATASOURCE_H_
